﻿using O.M.Production.Domain.Entity;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static O.M.Production.Domain.EnumModel;

namespace O.M.Production.Domain.DTO.Produce_work_order
{
    /// <summary>
    /// 生产工单DTO
    /// </summary>
    public class produce_work_order_DTO:BaseModel
    {
        /// <summary>
        /// 工单编号
        /// </summary>
        public string? work_order_id { get; set; }

        /// <summary>
        /// 工单名称
        /// </summary> 
        public string? work_order_name { get; set; }

        /// <summary>
        /// 生产单号
        /// </summary>
        public string? internal_product_id {  get; set; }

        /// <summary>
        /// 关联项目
        /// </summary>
        public string? associated_project {  get; set; }

        /// <summary>
        /// 计划生产物品
        /// </summary> 
        //public string? planned_production_items { get; set; }


        /// <summary>
        /// 进度
        /// </summary> 
        public decimal? rate_of_progress { get; set; }

        /// <summary>
        /// 工单日期
        /// </summary>
        public DateTime? work_order_date { get; set; }

        /// <summary>
        /// 部门
        /// </summary> 
        public string? department { get; set; }

        /// <summary>
        /// 负责人
        /// </summary> 
        public string? person_in_charge { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? remarks {  get; set; }

        /// <summary>
        /// 工序数量
        /// </summary> 
        public int? process_quantity { get; set; }

        /// <summary>
        /// 设计产量
        /// </summary> 
        public int? designed_output { get; set; }

        /// <summary>
        /// 合格数量
        /// </summary> 
        public int? qualified_quantity { get; set; }

        /// <summary>
        /// 不良数量
        /// </summary> 
        public int? bad_quantity { get; set; }

        /// <summary>
        /// 合格率
        /// </summary> 
        public decimal? percent_of_pass { get; set; }

        /// <summary>
        /// 计划开始时间
        /// </summary> 
        public DateTime? planned_start_time { get; set; }

        /// <summary>
        /// 计划结束时间
        /// </summary> 
        public DateTime? planned_end_time { get; set; }

        /// <summary>
        /// 实际开始时间
        /// </summary> 
        public DateTime? actual_start_time { get; set; }

        /// <summary>
        /// 实际结束时间
        /// </summary>
        public DateTime? actual_end_time { get; set; }

        /// <summary>
        /// 生产产品(计划生产物品)
        /// </summary>
        public string? production_product { get; set; }

        /// <summary>
        /// 产品编号
        /// </summary>
        public string? product_id { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string? specifications_models { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string? unit { get; set; }

        /// <summary>
        /// 报工次数
        /// </summary>
        public int? number_of_work_reports { get; set; }

        /// <summary>
        /// 附件
        /// </summary>
        public string? attachment { get; set; }
        /// <summary>
        /// 工序流程关系表DTO集合
        /// </summary>
        public List<working_procedure_DTO>? working_Procedure_DTOs {  get; set; } 
    }
}
